<template>
  <div class="container">
    <div class="header">
      <div class="nav">
      </div>
      <div class="userimg">
          
        <img v-if="user.headerimg" :src="user.headerimg" alt="" @click="AuthorDetails">
        <p v-else>请先登录</p>
        <p>{{ user.nick }}</p>
      </div>
      <div class="nav">
      </div>
    </div>

    <div class="content">
      <div class="contenthead">
        <div class="conyentheadTime"><span>2023</span><span> 123</span> </div>
        <img src="/img/zuopinji.png" alt="">
      </div>

      <!-- <ul>
          <li v-for="i in listImg" :key="i"><img :src="i"/></li>
        </ul> -->
      <div class="box">
        <img v-for="i in listImg" :key="i" :src="i" alt="" class="imgg">

      </div>

      <div class="foot">
        <div class="he">
          <p>中国年</p>
          <img
            src="//img-qn-2.51miz.com/preview/muban/00/00/90/21/M-902117-F9A6C34C.jpg!/quality/90/unsharp/true/compress/true/fw/640/clip/640x500a0a0" />
          <div class="fo">

          </div>
        </div>

      </div>
    </div>
  </div>
</template>
<script setup >
import { ref, onMounted } from "vue";
// import { useUserStore } from '@/stores/user'
import { useRouter } from 'vue-router'
const store = useUserStore()
// const user = store.userInfo //拿到数据然后渲染
const router = useRouter();
const listImg = ref(["https://tse1-mm.cn.bing.net/th/id/OIP-C.F_iAlTyuNc80RkQnFNh3twHaNK?w=187&h=333&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://ts1.cn.mm.bing.net/th?id=OIP-C.cWj-vHNxJiPyNi3YnZE__wHaKe&w=122&h=169&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2", "https://tse3-mm.cn.bing.net/th/id/OIP-C.igLcCbgtwAjPPhvCS84KugHaQD?w=115&h=180&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://tse4-mm.cn.bing.net/th/id/OIP-C.rB56pYxK3CP4kIx9nsJfLQHaQC?w=115&h=180&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://ts1.cn.mm.bing.net/th?id=OIP-C.Xy_77gg7FpcHlVgu_JBpJwHaNK&w=100&h=169&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2", "https://tse3-mm.cn.bing.net/th/id/OIP-C.BmevVs6TZR74ciEFSnxLEwHaNK?w=187&h=333&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://ts1.cn.mm.bing.net/th?id=OIP-C.OmXiQQBhD9uVFwPlQCT3egHaEK&w=287&h=165&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2", "https://ts1.cn.mm.bing.net/th?id=OIP-C.Yt-pBYb9SzcpfGaPYGkBqwHaEo&w=270&h=168&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2", "https://tse4-mm.cn.bing.net/th/id/OIP-C.iSo2du3sBG8hV7Z2KaraEAHaNK?w=187&h=333&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://ts1.cn.mm.bing.net/th?id=OIP-C.Xy_77gg7FpcHlVgu_JBpJwHaNK&w=100&h=169&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2", "https://tse3-mm.cn.bing.net/th/id/OIP-C.BmevVs6TZR74ciEFSnxLEwHaNK?w=187&h=333&c=7&r=0&o=5&dpr=1.1&pid=1.7", "https://ts1.cn.mm.bing.net/th?id=OIP-C.OmXiQQBhD9uVFwPlQCT3egHaEK&w=287&h=165&c=8&rs=1&qlt=90&o=6&dpr=1.1&pid=3.1&rm=2"])


</script>
<style scoped lang="scss">
.container {
  background-color: black;

  .header {
    text-align: center;

    .userimg {
      height: 300px;
      width: 100vw;
      background-color: antiquewhite;
      background: url(img/bg2.jpg);

      img {
        width: 100px;
        border-radius: 30vw;
        margin-top: 50px;
      }

      p {
        font-size: 24px;
        color: white;
      }
    }

    .nav {
      background-color: #494949;
      height: 28px;
      width: 100vw;
      color: white;
    }
  }

  .content {
    width: 1000px;
    margin: 0 auto;
    text-align: center;

    .contenthead {
      .conyentheadTime {
        display: flex;
        color: white;
        justify-content: space-between;

        span {
          font-size: 20px;
          line-height: 50px;
        }
      }

      img {
        width: 1000px;
      }
    }

    .box {
      position: relative;

      .imgg {
        min-width: 200px;
        height: 140px;
        vertical-align: top;
        padding: 5px;
      }
    }

    .foot {
      .he {
        p {
          color: aliceblue;
        }

        img {
          width: 100%;
          height: 350px;
        }
      }
    }

  }
}
</style>